package cn.com.cym.gamezao.repository.demo;

import cn.com.cym.gamezao.base.BaseRepository;
import cn.com.cym.gamezao.entity.demo.Child;
import cn.com.cym.gamezao.entity.demo.Parent;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.stereotype.Repository;

import java.util.List;

@RedisHash
@Repository
public interface ChildRepository extends BaseRepository<Child,Long> {

    Child getByCode(String code);

    List<Child> findAllByParent(Parent parent);
}
